// boost_timer.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <string>
#include <sstream>
using namespace std;

#include <boost/date_time/posix_time/posix_time.hpp>
using namespace boost::posix_time;
using namespace boost;

int _tmain(int argc, _TCHAR* argv[])
{
	ptime p1 = microsec_clock::local_time();

	string str = to_iso_extended_string(p1);

	char sz[] = "11111";

	stringstream ss;
	ss << "TenforeRawData_" << to_iso_string(microsec_clock::local_time()) << ".dat";

	string sss = ss.str();
	FILE* pFile = fopen(ss.str().c_str(), "w");
	fwrite(sz, sizeof(unsigned char), sizeof(sz), pFile);
	fclose(pFile);
	
	getchar();


	return 0;
}

